package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.domain.DetailCommend;
import cn.wolfcode.luowowo.article.domain.StrategyTag;
import cn.wolfcode.luowowo.article.mapper.DestinationMapper;
import cn.wolfcode.luowowo.article.mapper.DetailCommendMapper;
import cn.wolfcode.luowowo.article.mapper.StrategyTagMapper;
import cn.wolfcode.luowowo.article.service.IDetailCommendService;
import cn.wolfcode.luowowo.article.service.IStrategyTagService;
import cn.wolfcode.luowowo.common.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class DetailCommendServiceImpl implements IDetailCommendService {
    @Autowired
    private DetailCommendMapper detailCommendMapper;
    @Autowired
    private DestinationMapper destinationMapper;
    @Override
    public PageInfo query(QueryObject qo) {

        List<StrategyTag> list = detailCommendMapper.selectForList(qo);
        return new PageInfo(list);
    }

    public DetailCommend listDestBySeason(Long monthId) {


        return detailCommendMapper.selectBySeson();
    }


}
